﻿namespace ApplicationControllerExample.Views.Main
{
    using System;
    using System.Windows.Forms;

    public partial class MainView : Form, IMainView
    {
        public MainView()
        {
            InitializeComponent();
        }

        #region IMainView Members

        public MainPresenter Presenter { get; set; }

        public void Run()
        {
            ShowDialog();
        }

        public void SaySomething(string something)
        {
            MessageBox.Show(something);
        }

        #endregion

        private void button1_Click(object sender, EventArgs e)
        {
            Presenter.DoSomething();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Presenter.SomethingElseIsHappening();
        }
    }
}